# _*_conding:cp-1252-*-
# 教育机构：银杰教育
# 讲师：李伟
# 开发时间：2025/8/26 下午10:27
import requests

# 1、发送post请求 【四大要素】
url_search = "http://shop.lemonban.com:8107/login"
metd = "post"
param = {"principal": "lemon_py",
         "credentials": "12345678",
         "appType": 3,
         "loginType": 0
         }
# 设置代理
proxies = {"http":"127.0.0.1:8889"}  #这个端口是fiddler端口
resp = requests.request(method=metd, url=url_search, json=param,proxies=proxies)
token = resp.json()["access_token"]
print(token)
